//
//  Creatrue.cpp
//  GameofLife
//
//  Created by lbc on 16/9/13.
//
//
#include "Creature.h"
using namespace cocos2d;
bool Creature::init(){
    if (!Sprite::initWithFile("Assets/SpriteImages/bubble.png")) {
        return false;
    }
    this->setLivingNeighborsCount(0);
    this->setIsAlive(false);
    return true;
}
void Creature::setIsAlive(bool isAlive){
    this->isAlive = isAlive;
    this->setVisible(isAlive);
}
void Creature::setLivingNeighborsCount(int livingNeighborsCount){
    this->livingNeighborsCount = livingNeighborsCount;
}
bool Creature::getIsAllive(){
    return this->isAlive;
}
int Creature::getLivingNeighborsCount(){
    return this->livingNeighborsCount;
}